home *** CD-ROM | disk | FTP | other *** search
- *******************************************************************************
- * PROGRAM: Options.pop
- *
- * WRITTEN BY: Borland Samples Group
- *
- * DATE: 3/95
- *
- * UPDATED: 5/95
- *
- * REVISION: $Revision: 1.4 $
- *
- * VERSION: Visual dBASE
- *
- * DESCRIPTION: This is a simple options popup that allows changing fonts,
- * colors, and also could bring up a tool dialog for modifying
- * other form properties. (Tool and font modifications aren't
- * implemented yet. The popup will appear whenever you right
- * click on the form.
- *
- * PARAMETERS: None
- *
- * CALLS: None
- *
- * USAGE: Set Procedure to Options.pop additive
- * form.popupMenu = new OptionsPopup(form, "popup1")
- *
- ********************************************************************************
-
- ** END HEADER -- do not remove this line*
- * Generated on 02/03/95
- *
- Parameter FormObj,PopupName
- NEW OPTIONSPOPUP(FormObj,PopupName)
- CLASS OPTIONSPOPUP(FormObj,PopupName) OF POPUP(FormObj,PopupName)
- this.TrackRight = .T.
- this.Left = 0
- this.Top = 0
-
- DEFINE MENU TOOLS OF THIS;
- PROPERTY;
- Enabled .F.,;
- Text "Tools...",;
- OnClick CLASS::TOOLS_ONCLICK
-
- DEFINE MENU COLOR OF THIS;
- PROPERTY;
- Enabled .T.,;
- Text "Color...",;
- OnClick CLASS::COLOR_ONCLICK
-
- ****************************************************************************
- Procedure COLOR_OnClick
-
- * Changes background color of form and tabboxes
- ****************************************************************************
- private formColorValue
- formColorValue = GetColor()
- define color formColor &formColorValue
- form.colorNormal = "formColor/formColor"
-
- form.pageTabbox.colorNormal = "n/formColor"
- form.sqlDbaseTabbox.colorNormal = "r/formColor"
-
-
- ****************************************************************************
- Procedure TOOLS_OnClick
- ****************************************************************************
- *do ToolOps.wfm with .T. && Bring up tool form modally
-
- ENDCLASS
-